using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Drawing;

namespace LHS.Core.TableInfo
{
    public class InfoClinicalPicture
    {
        public const string CLPISN = "clpISN";
        public const string CLRISN = "clrISN";
        public const string PATID = "patID";
        public const string CLPNO = "clpNo";
        public const string CLREXAMINATIONTIMES = "clrExaminationTimes";
        public const string CLRREXAMINATIONTIMES = "clrRexaminationTimes";
        public const string CLPPICTUREDESCRIPTION = "clpPictureDescription";
        public const string CLPPICTURE = "clpPicture";
        public const string CLPPICNAME = "clpPicName";
        public const string CLPPICDATE = "clpPicDate";
        public const string SURISN = "surISN";
        public const string HIDDEN_PICNAME = "Hidden_PicName"; //dung de luu giu ten hinh anh truoc khi cap nhat. nham de xoa file cu. truoc khi insert file moi. tren duong dan vat ly
        public const string HIDDEN_PICPATH = "Hidden_PicPath"; //dung de luu giu duong dan hinh anh truoc khi cap nhat. nham de xoa file cu. truoc khi insert file moi. tren duong dan vat ly
        public const string HIDDEN_IMAGE = "Hidden_Image";
        public const string HIDDEN_STATUS = "Hidden_Status";
        public const string HIDDEN_CHECK = "Hidden_Check";
        public const string HIDDEN_SURNAME = "Hidden_SurName";
        public const string TABLENAME = "ClinicalPicture";

        public static DataTable GetStructure()
        {
            DataTable dt = new DataTable();
            dt.Columns.Add(CLPISN, typeof(int));
            dt.Columns.Add(CLRISN, typeof(int));
            dt.Columns.Add(PATID, typeof(int));
            dt.Columns.Add(SURISN, typeof(int));
            dt.Columns.Add(CLPNO, typeof(int)); //luu giu thu tu cua hinh anh ISN // user co the sua nhung khong duoc trung // vi thu tu nay duoc build thanh ten cua hinh anh vat ly
            dt.Columns.Add(CLREXAMINATIONTIMES, typeof(int));
            dt.Columns.Add(CLRREXAMINATIONTIMES, typeof(int));
            dt.Columns.Add(CLPPICTUREDESCRIPTION, typeof(string));
            dt.Columns.Add(CLPPICNAME, typeof(string));
            dt.Columns.Add(CLPPICTURE, typeof(string)); //duong dan luu duoi DB
            dt.Columns.Add(CLPPICDATE, typeof(string)); 
            dt.Columns.Add(HIDDEN_IMAGE, typeof(Image)); //khong luu duoi DB // luu tren duong dan vat ly
            dt.Columns.Add(HIDDEN_PICNAME, typeof(string)); //khong luu duoi DB // luu tren duong dan vat ly
            dt.Columns.Add(HIDDEN_PICPATH, typeof(string)); //khong luu duoi DB // luu tren duong dan vat ly
            dt.Columns.Add(HIDDEN_CHECK, typeof(int));
            dt.Columns.Add(HIDDEN_SURNAME, typeof(string));
            dt.Columns.Add(HIDDEN_STATUS, typeof(int));
            dt.TableName = TABLENAME;
            return dt;
        }

        public enum eHiddenStatus : int
        {
            _HaveValue = -1,
            _Register =1,
            _Updated=2,
            _Deleted =4,
        }
    }
}
